package com.cloud.system.api.mapper;

import com.cloud.system.api.entity.SysInfo;
import com.cloud.system.common.utils.BaseMapperHelper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public interface SysInfoMapper extends BaseMapperHelper<SysInfo> {
    @Select("select * from sys_info where sys_path = #{sysPath}")
    @Results({
            @Result(property = "iconImage",column = "icon_image",javaType = String.class),
            @Result(property = "sysName", column = "sys_name", javaType = String.class),
    })
    SysInfo getInitSystemByUrl(@Param("sysPath") String url);
}